<?php
$srcPath = '../src';

$frameworkPath = $srcPath . '/framework';

require_once $frameworkPath . '/Framework.php';

$framework = new Framework;

$framework->boot();

$mysqliConfig = array(
'schema' => 'oopframeworktest',
'host' => 'localhost',
'user' => 'oopframeworktest',
'pass' => 'password'
);

$mysqli = new MySQLiDBConnection($mysqliConfig['host'], $mysqliConfig['user'], $mysqliConfig['pass'], $mysqliConfig['schema']);

Model::addDatabase('test', $mysqli);

/*
for ($i = 0; $i <= 30; $i++)	{
	$library = new library;
	$library->name = substr(md5(microtime()), 0, 10);
	$library->name = substr(md5(microtime()), 0, 15);
	$library->save();
}
*/

$libraries = Model::getMulti('library');

print_r ($libraries);
?>